//
//  Debug.swift
//  vgbox
//
//  Created by wangzhiyuan on 2017/5/24.
//  Copyright © 2017年 Swift Xcode. All rights reserved.
//

import UIKit

class Debug: NSObject {
    
    class func DebugPRINT(obj: Any...) {
        ///这里大写
        #if DEBUG
            debugPrint(obj)
        #endif
        
    }
    
    class func DebugUrlLinkString(url: String, params: [String: String]) -> Void {
        #if DEBUG
            var urllinkString = url + "?" //url链接
            for (key, value) in params {
                urllinkString += key + "=" + value + "&"
            }
            urllinkString.remove(at: urllinkString.index(before: urllinkString.endIndex))
            DebugPRINT(obj: "urllink：" + urllinkString)
            //print("urllinkString==\(urllinkString)")
        #endif
    }
}
